package zpin.dao;

import java.util.List;

import org.hibernate.Query;


import util.dao.HibernateDaoImpl;
import zpin.model.Resume;





public class ResumeDaoImpl extends HibernateDaoImpl<Resume, Long> implements ResumeDao{
	//private Type type;

	@SuppressWarnings("unchecked")
	@Override
	public List<Resume> findResumeByType(Long id) {
		
		Query query=this.getSession().createQuery(
			" from " + Resume.class.getName() + " r where r.type.id ="+id);
		
		return query.list();
	}




}
